//
//  ViewController.m
//  Theme
//
//  Created by 张鹏伟 on 15/8/20.
//  Copyright (c) 2015年 108. All rights reserved.
//

#import "ViewController.h"
#import "BaseTabBarController.h"

@interface ViewController ()

@end

@implementation ViewController



- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    BaseTabBarController *tabBarController = [[BaseTabBarController alloc] init];
//    tabBarController.tabBar.backgroundImage = [UIImage imageNamed:@"navigationbar_background.png"];
//    tabBarController.tabBar.backgroundColor = [UIColor whiteColor];
//    tabBarController.tabBar.tintColor = [UIColor blueColor];
    
    UIWindow *window = [UIApplication sharedApplication].windows[0];
    window.rootViewController = tabBarController;
    // Do any additional setup after loading the view, typically from a nib.
    
    NSLog(@"123");
    
    self.view.backgroundColor = [UIColor colorWithRed:0.258 green:0.000 blue:0.000 alpha:1.000];
    
    UILabel *labelName = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
    labelName.backgroundColor = [UIColor blueColor];
    labelName.text = @"346346537`";
    [self.view addSubview:labelName];
    
    
    UIButton *buttonName = [UIButton buttonWithType:UIButtonTypeCustom];
    buttonName.backgroundColor = [UIColor greenColor];
    buttonName.frame = CGRectMake(0, 0, 300, 100);
    [buttonName setTitle:@"按钮" forState:(UIControlStateNormal)];
    [buttonName setTitleColor:[UIColor redColor] forState:(UIControlStateNormal)];
    [buttonName addTarget:self action:@selector(handleButton) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:buttonName];
}
- (void)handleButton{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
